package com.ruoyi.house.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.util.List;

/**
 * 房屋对象 xlkj_house
 *
 * @author wang
 * @date 2022-01-11
 */
public class XlkjHouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 房屋照片 */
    @Excel(name = "房屋照片")
    private String img;

    /** 房屋地址 */
    @Excel(name = "房屋地址")
    private String address;

    /** 房屋用途 */
    @Excel(name = "房屋用途")
    private String user;

    /** 房屋户型 */
    @Excel(name = "房屋户型")
    private String apartment;

    /** 房屋面积 */
    @Excel(name = "房屋面积")
    private String measure;

    /** 房屋结构 */
    @Excel(name = "房屋结构")
    private String structure;

    /** 房屋所属单位编码 */
    @Excel(name = "房屋所属单位编码")
    private String code;

    /** 房屋所属单位名称 */
    @Excel(name = "房屋所属单位名称")
    private String name;

    /** 房屋间数 */
    @Excel(name = "房屋间数")
    private Long num;

    /** 房屋产权证号 */
    @Excel(name = "房屋产权证号")
    private String propertyNumber;

    /** 房屋类型 */
    @Excel(name = "房屋类型")
    private String houseType;

    /**
     * 所属网格
     * @param id
     */
    @Excel(name = "所属网格")
    private String departmentId;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String status;

    /** 上报者id */
    @Excel(name = "上报者")
    private Long userId;

    private String phone;

    private SysUser sysUser;

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    private String departmentList;

    public String getDepartmentList() {
        return departmentList;
    }

    public void setDepartmentList(String departmentList) {
        this.departmentList = departmentList;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public void setApartment(String apartment)
    {
        this.apartment = apartment;
    }

    public String getApartment()
    {
        return apartment;
    }
    public void setMeasure(String measure)
    {
        this.measure = measure;
    }

    public String getMeasure()
    {
        return measure;
    }
    public void setStructure(String structure)
    {
        this.structure = structure;
    }

    public String getStructure()
    {
        return structure;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setPropertyNumber(String propertyNumber)
    {
        this.propertyNumber = propertyNumber;
    }

    public String getPropertyNumber()
    {
        return propertyNumber;
    }
    public void setHouseType(String houseType)
    {
        this.houseType = houseType;
    }

    public String getHouseType()
    {
        return houseType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("img", getImg())
            .append("address", getAddress())
            .append("user", getUser())
            .append("apartment", getApartment())
            .append("measure", getMeasure())
            .append("structure", getStructure())
            .append("code", getCode())
            .append("name", getName())
            .append("num", getNum())
            .append("propertyNumber", getPropertyNumber())
            .append("houseType", getHouseType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
